package com.guozy.example.rpc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("com.guozy.example")
public class Bootstrap {
    public static void main(String[] args) {
//        IOrderService orderService = new OrderSericeImpl();
//        IOrderService orderService = new OrderServiceImpl();
//        RpcProxyService rpcProxyService = new RpcProxyService();
//        rpcProxyService.publisher(orderService, 8080);
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(Bootstrap.class);

    }
}
